package com.example.shopping.service;


import com.example.shopping.entity.Order;
import com.example.shopping.entity.dto.OrderDTO;
import org.springframework.data.domain.Page;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {


    List<OrderDTO> findAllOrdersWithUserInfoAndGoodsInfo();

    Page<OrderDTO> queryOrders(String username, String goodsname, String mailingaddress, String rphone, String receiver, LocalDate buytimebegin, LocalDate buytimeend, int pageNo, int pageSize);

    Order createOrder(int uid, String gid, Integer quantity, Double money, LocalDateTime buytime, String rphone, String mailingaddress, String receiver, Float price);

    List<OrderDTO> findOrdersByUid(int uid);
}
